package xuegao.study.mall.web.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xuegao.study.mall.common.api.CommonResult;
import xuegao.study.mall.common.dto.rbac.UmsMemberRegisterDto;

@FeignClient(contextId = "member", name = "study-rbac-service", path = "/rbac/member")
public interface UmsMemberClient {

    @ApiOperation("会员注册")
    @PostMapping("/register")
    CommonResult<Integer> register(@RequestBody UmsMemberRegisterDto memberDto);
}
